home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Shareware / openOffice.org 641 / Windows / f_0047 / sbasic.jar / text / sbasic / common / 03080201.xml < prev    next >
Extensible Markup Language  |  2001-09-07  |  2KB  |  30 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Exp-Function [Runtime]</title><meta name="filename" content="text/sbasic/common/03080201"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <help:to-be-embedded Eid="exp" xmlns:help="http://openoffice.org/2000/help">
  12.   <p class="Head1"><help:link Id="66570">Exp-Function [Runtime]</help:link></p>
  13.   <p class="Paragraph">Returns the base of the natural logarithm (e = 2.718282) raised to a power.</p>
  14.   </help:to-be-embedded>
  15.   <p class="Paragraph"><span class="T1">Syntax</span>:</p>
  16.   <p class="Paragraph">Exp (Number) <help:key-word value="Exp" tag="kw66570_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  17.   <p class="Paragraph"><span class="T1">Return value</span>:</p>
  18.   <p class="Paragraph">Double</p>
  19.   <p class="Paragraph"><span class="T1">Parameter</span>:</p>
  20.   <p class="Paragraph">Number: Any numeric expression that specifies the power by which to raise e (the base of natural logarithms). The power must be for bothsingle-precision numbers <= 88.02969 and double-precision numbers <= 709.782712893, since OpenOffice.org Basic returns an Overflow error for numbers exceeding these values.</p>
  21.   <p class="Paragraph"><span class="T1">Example:</span></p>
  22.   <p class="PropText">Sub ExampleLogExp</p>
  23.   <p class="PropText">Dim dValue as Double</p>
  24.   <p class="PropText">const b1=12.345e12</p>
  25.   <p class="PropText">const b2=1.345e34</p>
  26.   <p class="PropText">dValue=Exp( Log(b1)+Log(b2) )</p>
  27.   <p class="PropText">MsgBox "" & dValue & chr(13) & (b1*b2) ,0,"Multiplication by logarithm"</p>
  28.   <p class="PropText">end sub</p>
  29.   <p class="PropText"/>
  30.  </body></html>